/*
 * @Author: 肖思汗 
 * @Date: 2025-08-17 19:14:19 
 * @Last Modified by:   xiaosihan 
 * @Last Modified time: 2025-08-17 19:14:19 
 */
// import userApi from '@/api/userApi';
import { View } from '@tarojs/components';
import { observer } from "mobx-react-lite";
import { useEffect } from 'react';
import PageLayer from '../../components/PageLayer/PageLayer';
import styles from './user.module.less'; // 修改为模块化样式
import userStore from './userStore';
// import userApi from '@/api/userApi';
import userApi from 'api/userApi';

const User = observer(() => {

    useEffect(() => {
        userApi.write_user_login({});
    }, []);

    if (userStore.userData) {
        console.log(userStore.userData);
    }

    return (
        <PageLayer
            className={styles.user}
        >
            <View> page: 用户中心 </View>
        </PageLayer>
    );
});

export default User;



